package cn.weekimwee.firstlineofcodeforkotlin.unit5

import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import org.jetbrains.anko.toast

/**
 * 这个不知道为什么   重启后红米2a没反映   不知道其他手机怎么样  20180217
 */
class BootCompleteReceiver : BroadcastReceiver() {

    @SuppressLint("UnsafeProtectedBroadcastReceiver")
    override fun onReceive(context: Context, intent: Intent) {
        Log.e("eeeee","开机启动的广播")
        context.toast("boot complete")
    }
}
